<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    request.setAttribute("contextPath", request.getContextPath());
%>
<html>
<head>
<title>List All Books</title>
</head>
<body>
	<a href="${contextPath }/admin/home">返回后台</a>
	
	<a href="${contextPath }/admin/addCategoryView">新增书籍</a>
	<br/><br/>
	  <!-- private int categoryId;
	private String categoryName;
	private String descri;
        -->
	<table width="80%" border="1">
		<tr>
			<td>categoryId</td>
			<td>categoryName</td>
			<td>descri</td>
		</tr>
		<c:forEach items="${categoryList }" var="ca">
			<tr>
				<td>${ca.categoryId }</td>
				<td>${ca.categoryName }</td>
				<td>${ca.descri }</td>
				<td>
				    <a href="${contextPath }/admin/updateCategoryView/${ca.categoryId }">编辑</a>
				    &nbsp;&nbsp;
				    <a href="${contextPath }/admin/deleteCategory/${ca.categoryId }">删除</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>
